import request from '@/utils/request'

// 查询MailPlatformRel列表
export function listPlatformrel(query) {
  return request({
    url: '/mail/platformrel/list',
    method: 'get',
    params: query
  })
}

// 查询MailPlatformRel详细
export function getPlatformrel(id) {
  return request({
    url: '/mail/platformrel/' + id,
    method: 'get'
  })
}

// 新增MailPlatformRel
export function addPlatformrel(data) {
  return request({
    url: '/mail/platformrel',
    method: 'post',
    data: data
  })
}

// 修改MailPlatformRel
export function updatePlatformrel(data) {
  return request({
    url: '/mail/platformrel',
    method: 'put',
    data: data
  })
}

// 删除MailPlatformRel
export function delPlatformrel(id) {
  return request({
    url: '/mail/platformrel/' + id,
    method: 'delete'
  })
}

// 导出MailPlatformRel
export function exportPlatformrel(query) {
  return request({
    url: '/mail/platformrel/export',
    method: 'get',
    params: query
  })
}